package com.qwz.example.factory;

import com.qwz.example.product.AMDCPU;
import com.qwz.example.product.abstractproduct.CPUApi;
import com.qwz.example.product.MSIMainboard;
import com.qwz.example.product.abstractproduct.MainBoardApi;
/**
* @Description: 装机方案2：AMD的CPU和微信的主板
* @Package com.qwz.example.factory.Schema2
* @author Qiuwuzhi
* @date 2019/12/16 11:11
* @version V1.0
*/
public class Schema2 implements AbstractFactory {
    @Override
    public CPUApi createCPUApi() {
        return new AMDCPU(939);
    }

    @Override
    public MainBoardApi creatMainBoardApi() {
        return new MSIMainboard(939);
    }
}
